<!DOCTYPE html>
<!-- saved from url=(0065)http://dragly.org/2012/01/13/deploy-qt-applications-for-mac-os-x/ -->
<html lang="en-US"><!--<![endif]--><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width">
	<title>Deploy Qt applications for Mac OS X | dragly</title>
	<link rel="profile" href="http://gmpg.org/xfn/11">
	<link rel="pingback" href="http://dragly.org/xmlrpc.php">
	<!--[if lt IE 9]>
	<script src="http://dragly.org/wp-content/themes/twentythirteen/js/html5.js"></script>
	<![endif]-->
	<style type="text/css">
		.stpulldown-gradient
		{
			background: #E1E1E1;
			background: -moz-linear-gradient(top, #E1E1E1 0%, #A7A7A7 100%); /* firefox */
			background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#E1E1E1), color-stop(100%,#A7A7A7)); /* webkit */
			filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#E1E1E1', endColorstr='#A7A7A7',GradientType=0 ); /* ie */
			background: -o-linear-gradient(top, #E1E1E1 0%,#A7A7A7 100%); /* opera */
			color: #636363;
		}
		#stpulldown .stpulldown-logo
		{
			height: 40px;
			width: 300px;
			margin-left: 20px;
			margin-top: 5px;
			background:url('') no-repeat;
		}
</style>
<link rel="alternate" type="application/rss+xml" title="dragly » Feed" href="http://dragly.org/feed/">
<link rel="alternate" type="application/rss+xml" title="dragly » Comments Feed" href="http://dragly.org/comments/feed/">
<link rel="alternate" type="application/rss+xml" title="dragly » Deploy Qt applications for Mac OS X Comments Feed" href="http://dragly.org/2012/01/13/deploy-qt-applications-for-mac-os-x/feed/">
<link rel="stylesheet" id="jetpack-widgets-css" href="./Deploy Qt applications for Mac OS X   dragly_files/widgets.css" type="text/css" media="all">
<link rel="stylesheet" id="twentythirteen-fonts-css" href="./Deploy Qt applications for Mac OS X   dragly_files/css" type="text/css" media="all">
<link rel="stylesheet" id="genericons-css" href="./Deploy Qt applications for Mac OS X   dragly_files/genericons.css" type="text/css" media="all">
<link rel="stylesheet" id="twentythirteen-style-css" href="./Deploy Qt applications for Mac OS X   dragly_files/style.css" type="text/css" media="all">
<!--[if lt IE 9]>
<link rel='stylesheet' id='twentythirteen-ie-css'  href='http://dragly.org/wp-content/themes/twentythirteen/css/ie.css?ver=2013-07-18' type='text/css' media='all' />
<![endif]-->
<link rel="stylesheet" id="yarpp-thumbnails-yarpp-thumbnail-css" href="./Deploy Qt applications for Mac OS X   dragly_files/styles-thumbnails.php" type="text/css" media="all">
<script src="./Deploy Qt applications for Mac OS X   dragly_files/quant.js" async="" type="text/javascript"></script><script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/prototype.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/scriptaculous.js"></script><script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/builder.js"></script><script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/effects.js"></script><script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/dragdrop.js"></script><script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/controls.js"></script><script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/slider.js"></script><script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/sound.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/effects(1).js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/lightbox.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/jquery.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/jquery-migrate.min.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/comment-reply.min.js"></script>
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://dragly.org/xmlrpc.php?rsd">
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://dragly.org/wp-includes/wlwmanifest.xml"> 
<link rel="prev" title="Nanoparticles for Android is just around the corner" href="http://dragly.org/2012/01/07/nanoparticles-for-android-is-just-around-the-corner/">
<link rel="next" title="Nanoparticles available for Android and Mac OS X" href="http://dragly.org/2012/01/18/nanoparticles-available-for-android-and-mac-os-x/">
<meta name="generator" content="WordPress 3.6.1">
<link rel="canonical" href="./Deploy Qt applications for Mac OS X   dragly_files/Deploy Qt applications for Mac OS X   dragly.html">
<link rel="shortlink" href="http://wp.me/p1haUl-9M">

	<!-- begin lightbox scripts -->
	<script type="text/javascript">
    //<![CDATA[
    document.write('<link rel="stylesheet" href="http://dragly.org/wp-content/plugins/lightbox-2/Themes/Black/lightbox.css" type="text/css" media="screen" />');
    //]]>
    </script><link rel="stylesheet" href="./Deploy Qt applications for Mac OS X   dragly_files/lightbox.css" type="text/css" media="screen">
	<!-- end lightbox scripts -->
<script charset="utf-8" type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/buttons.js"></script><script type="text/javascript">stLight.options({publisher:'eb9ccb89-aa22-4868-b518-573070a059df'});var st_type='wordpress3.0.1';</script><link href="https://plus.google.com/113444502967822249057" rel="author">
<!-- Jetpack Open Graph Tags -->
<meta property="og:type" content="article">
<meta property="og:title" content="Deploy Qt applications for Mac OS X">
<meta property="og:url" content="http://dragly.org/2012/01/13/deploy-qt-applications-for-mac-os-x/">
<meta property="og:description" content="This turned out to be really simple. I was trying to create a Mac OS X version of my game, Nanoparticles, and was having trouble with some flicker when running a QGraphicsView with OpenGL. The solu...">
<meta property="og:site_name" content="dragly">
<meta name="twitter:site" content="@jetpack">
<meta name="twitter:card" content="summary">
	<style type="text/css" id="twentythirteen-header-css">
			.site-header {
			background: url(http://dragly.org/wp-content/uploads/2010/09/cropped-yafaray-2010-08-29_032940.resized.png) no-repeat scroll top;
			background-size: 1600px auto;
		}
			.site-title,
		.site-description {
			color: #ffffff;
		}
		</style>
	<link rel="stylesheet" type="text/css" href="./Deploy Qt applications for Mac OS X   dragly_files/shCore.css"><link rel="stylesheet" type="text/css" href="./Deploy Qt applications for Mac OS X   dragly_files/shThemeDefault.css"><style type="text/css" id="syntaxhighlighteranchor"></style>
<link rel="stylesheet" type="text/css" id="gravatar-card-css" href="./Deploy Qt applications for Mac OS X   dragly_files/hovercard.css"><link rel="stylesheet" type="text/css" id="gravatar-card-services-css" href="./Deploy Qt applications for Mac OS X   dragly_files/services.css"><script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/getAppDefault.esi"></script><script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/checkOAuth.esi"></script><link rel="stylesheet" type="text/css" href="./Deploy Qt applications for Mac OS X   dragly_files/buttons.20a85a6a67053717023e8d12a9dba430.css"></head>

<body class="single single-post postid-606 single-format-standard holi-color-scheme-blue single-author" style="" onclick="if(stWidget.buttonClicked==false){stWidget.stopClosing=false;stWidget.openDuration=0;stWidget.stClose(100);}">
	<div id="page" class="hfeed site">
		<header id="masthead" class="site-header" role="banner">
			<a class="home-link" href="http://dragly.org/" title="dragly" rel="home">
				<h1 class="site-title">dragly</h1>
				<h2 class="site-description"></h2>
			</a>

			<div id="navbar" class="navbar">
				<nav id="site-navigation" class="navigation main-navigation" role="navigation">
					<h3 class="menu-toggle">Menu</h3>
					<a class="screen-reader-text skip-link" href="http://dragly.org/2012/01/13/deploy-qt-applications-for-mac-os-x/#content" title="Skip to content">Skip to content</a>
					<div class="menu-navigation-container"><ul id="menu-navigation" class="nav-menu"><li id="menu-item-985" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-985"><a href="http://dragly.org/">Blog</a></li>
<li id="menu-item-974" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-974"><a href="http://dragly.org/source/">Source Code</a>
<ul class="sub-menu">
	<li id="menu-item-975" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-975"><a href="http://dragly.org/source/variational-monte-carlo/">Variational Monte Carlo</a></li>
	<li id="menu-item-976" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-976"><a href="http://dragly.org/source/nanoparticles/">Nanoparticles</a></li>
	<li id="menu-item-977" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-977"><a href="http://dragly.org/source/trafikanten/">Journey Planner for Norway</a></li>
</ul>
</li>
<li id="menu-item-979" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-979"><a href="http://dragly.org/about/copyleft/">Copyleft</a></li>
<li id="menu-item-978" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-978"><a href="http://dragly.org/about/">About</a></li>
</ul></div>					<form role="search" method="get" class="search-form" action="http://dragly.org/">
				<label>
					<span class="screen-reader-text">Search for:</span>
					<input type="search" class="search-field" placeholder="Search …" value="" name="s" title="Search for:">
				</label>
				<input type="submit" class="search-submit" value="Search">
			</form>				</nav><!-- #site-navigation -->
			</div><!-- #navbar -->
		</header><!-- #masthead -->

		<div id="main" class="site-main">

	<div id="primary" class="content-area">
		<div id="content" class="site-content" role="main">

						
				
<article id="post-606" class="post-606 post type-post status-publish format-standard hentry category-programming category-qt tag-deployment tag-dmg tag-mac tag-mac-os-x tag-os-x tag-qmake tag-qt-2">
	<header class="entry-header">
		
				<h1 class="entry-title">Deploy Qt applications for Mac OS X</h1>
		
		<div class="entry-meta">
			<span class="date"><a href="./Deploy Qt applications for Mac OS X   dragly_files/Deploy Qt applications for Mac OS X   dragly.html" title="Permalink to Deploy Qt applications for Mac OS X" rel="bookmark"><time class="entry-date" datetime="2012-01-13T13:55:08+00:00">January 13, 2012</time></a></span><span class="categories-links"><a href="http://dragly.org/category/programming/" title="View all posts in Programming" rel="category tag">Programming</a>, <a href="http://dragly.org/category/programming/qt/" title="View all posts in Qt" rel="category tag">Qt</a></span><span class="tags-links"><a href="http://dragly.org/tag/deployment/" rel="tag">deployment</a>, <a href="http://dragly.org/tag/dmg/" rel="tag">dmg</a>, <a href="http://dragly.org/tag/mac/" rel="tag">mac</a>, <a href="http://dragly.org/tag/mac-os-x/" rel="tag">mac os x</a>, <a href="http://dragly.org/tag/os-x/" rel="tag">os x</a>, <a href="http://dragly.org/tag/qmake/" rel="tag">qmake</a>, <a href="http://dragly.org/tag/qt-2/" rel="tag">qt</a></span><span class="author vcard"><a class="url fn n" href="http://dragly.org/author/svenni/" title="View all posts by Svenn-Arne Dragly" rel="author">Svenn-Arne Dragly</a></span>					</div><!-- .entry-meta -->
	</header><!-- .entry-header -->

		<div class="entry-content">
		<p>This turned out to be really simple. I was trying to create a Mac OS X version of my game, Nanoparticles, and was having trouble with some flicker when running a QGraphicsView with OpenGL. The solution turned out to simply be to <a href="https://bugreports.qt.nokia.com/browse/QTBUG-23619">disable some style sheet settings</a> that I didn’t need.</p>
<p>After this I wanted to create a nice .dmg file for easy deployment on Mac OS X. Thankfully, this process is not hard either. I found this through the <a href="http://developer.qt.nokia.com/doc/qt-4.8/deployment-mac.html">Qt Documentation</a>, but it is actually simpler than it seems thanks to the macdeployqt tool. This is mentioned on the page, but I decided to give a more thorough walk through on how to use the tool here:</p>
<ol>
<li>Build your application</li>
<li>In the build directory, run
<div><div id="highlighter_768280" class="syntaxhighlighter codesyntax shell"><div class="toolbar"><span><a href="http://dragly.org/2012/01/13/deploy-qt-applications-for-mac-os-x/#" class="toolbar_item command_help help">?</a></span></div><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="gutter"><div class="line number1 index0 alt2">1</div></td><td class="code"><div class="container"><div class="line number1 index0 alt2"><code class="shell plain">macdeployqt yourappname.app -dmg</code></div></div></td></tr></tbody></table></div></div>
<p>macdeployqt is found in the ~/Library/QtSDK/Desktop/Qt/474/gcc/bin folder (if that is where you installed Qt)</p></li>
<li>You should now have a nice yourappname.dmg file in the build directory. Open this up and check that your application runs from there.</li>
<li>If everything is working fine, you can do some prettifying of your .dmg file by opening it up using the Disk Utility and converting it to a Read/Write disk image.</li>
<li>Open your Read/Write disk image and create a shortcut to your Applications folder. This could either be done by dragging the Applications folder while holding the command key or by creating a symbolic link in terminal:
<div><div id="highlighter_1142" class="syntaxhighlighter codesyntax shell"><div class="toolbar"><span><a href="http://dragly.org/2012/01/13/deploy-qt-applications-for-mac-os-x/#" class="toolbar_item command_help help">?</a></span></div><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="gutter"><div class="line number1 index0 alt2">1</div></td><td class="code"><div class="container"><div class="line number1 index0 alt2"><code class="shell functions">ln</code> <code class="shell plain">-s </code><code class="shell plain">/Applications</code> <code class="shell plain">.</code><code class="shell plain">/Applications</code></div></div></td></tr></tbody></table></div></div>
</li>
<li>Edit the icon size, background image, etc. by clicking Command + J to open the View Options. Also, use View -&gt; Hide Toolbar and Hide Sidebar to hide the excessive toolbars from the disk image.</li>
<li>Close the image and use Disk Utility to convert it back to a compressed disk image.</li>
<li>Distribute your .dmg file.</li>
</ol>
<p>If you need more details about the process and how deployment is performed, have a look in the <a href="http://developer.qt.nokia.com/doc/qt-4.8/deployment-mac.html">Qt Docs</a>.</p>
<div class="yarpp-related">
<h3>Related posts:</h3>
<div class="yarpp-thumbnails-horizontal">
<a class="yarpp-thumbnail" href="http://dragly.org/2012/03/14/developing-mpi-applications-in-qt-creator/" title="Developing MPI applications in Qt Creator">
<img width="120" height="120" src="./Deploy Qt applications for Mac OS X   dragly_files/Qt_logostrap_CMYK-120x120.png" class="attachment-yarpp-thumbnail wp-post-image" alt="Qt_logostrap_CMYK"><span class="yarpp-thumbnail-title">Developing MPI applications in Qt Creator</span></a>
<a class="yarpp-thumbnail" href="http://dragly.org/2013/04/19/setting-up-unittest-with-qt-creator/" title="Setting up UnitTest++ with Qt Creator">
<img width="120" height="120" src="./Deploy Qt applications for Mac OS X   dragly_files/qt-logo-120x120.jpg" class="attachment-yarpp-thumbnail wp-post-image" alt="qt-logo"><span class="yarpp-thumbnail-title">Setting up UnitTest++ with Qt Creator</span></a>
<a class="yarpp-thumbnail" href="http://dragly.org/2011/11/01/bookmarks-in-terminal/" title="Bookmarks in terminal">
<span class="yarpp-thumbnail-default"><img src="./Deploy Qt applications for Mac OS X   dragly_files/default.png"></span><span class="yarpp-thumbnail-title">Bookmarks in terminal</span></a>
<a class="yarpp-thumbnail" href="http://dragly.org/2009/11/12/automount-a-ssh-server-in-ubuntu/" title="Automount an SSH server in Ubuntu">
<span class="yarpp-thumbnail-default"><img src="./Deploy Qt applications for Mac OS X   dragly_files/default.png"></span><span class="yarpp-thumbnail-title">Automount an SSH server in Ubuntu</span></a>
</div>
</div>
			</div><!-- .entry-content -->
	
	<footer class="entry-meta">
		
			</footer><!-- .entry-meta -->
</article><!-- #post -->
					<nav class="navigation post-navigation" role="navigation">
		<h1 class="screen-reader-text">Post navigation</h1>
		<div class="nav-links">

			<a href="http://dragly.org/2012/01/07/nanoparticles-for-android-is-just-around-the-corner/" rel="prev"><span class="meta-nav">←</span> Nanoparticles for Android is just around the corner</a>			<a href="http://dragly.org/2012/01/18/nanoparticles-available-for-android-and-mac-os-x/" rel="next">Nanoparticles available for Android and Mac OS X <span class="meta-nav">→</span></a>
		</div><!-- .nav-links -->
	</nav><!-- .navigation -->
					
<div id="comments" class="comments-area">

			<h2 class="comments-title">
			3 thoughts on “<span>Deploy Qt applications for Mac OS X</span>”		</h2>

		<ol class="comment-list">
					<li id="comment-3753" class="comment even thread-even depth-1 parent">
			<article id="div-comment-3753" class="comment-body">
				<footer class="comment-meta">
					<div class="comment-author vcard">
						<img alt="" src="./Deploy Qt applications for Mac OS X   dragly_files/048e5dd180f4a5a35119807d15eb2274" class="avatar avatar-74 photo grav-hashed grav-hijack" height="74" width="74" id="grav-048e5dd180f4a5a35119807d15eb2274-0">						<b class="fn">Darek</b> <span class="says">says:</span>					</div><!-- .comment-author -->

					<div class="comment-metadata">
						<a href="http://dragly.org/2012/01/13/deploy-qt-applications-for-mac-os-x/comment-page-1/#comment-3753">
							<time datetime="2012-10-08T17:14:28+00:00">
								October 8, 2012 at 17:14							</time>
						</a>
											</div><!-- .comment-metadata -->

									</footer><!-- .comment-meta -->

				<div class="comment-content">
					<p>Which version of QT were you deploying with?</p>
<p>I’m having trouble with macdeployqt on QT 5.0.0 Beta.  Application seems to open up fine, but nothing gets displayed ….</p>
				</div><!-- .comment-content -->

				<div class="reply">
					<a class="comment-reply-link" href="http://dragly.org/2012/01/13/deploy-qt-applications-for-mac-os-x/?replytocom=3753#respond" onclick="return addComment.moveForm(&quot;div-comment-3753&quot;, &quot;3753&quot;, &quot;respond&quot;, &quot;606&quot;)">Reply</a>				</div><!-- .reply -->
			</article><!-- .comment-body -->
<ol class="children">
		<li id="comment-3756" class="comment byuser comment-author-svenni bypostauthor odd alt depth-2">
			<article id="div-comment-3756" class="comment-body">
				<footer class="comment-meta">
					<div class="comment-author vcard">
						<img alt="" src="./Deploy Qt applications for Mac OS X   dragly_files/f90d870c57e93d34fac6328699b82f9c" class="avatar avatar-74 photo grav-hashed grav-hijack" height="74" width="74" id="grav-f90d870c57e93d34fac6328699b82f9c-0">						<b class="fn"><a href="http://dragly.org/" rel="external nofollow" class="url">Svenn-Arne Dragly</a></b> <span class="says">says:</span>					</div><!-- .comment-author -->

					<div class="comment-metadata">
						<a href="http://dragly.org/2012/01/13/deploy-qt-applications-for-mac-os-x/comment-page-1/#comment-3756">
							<time datetime="2012-10-08T20:45:25+00:00">
								October 8, 2012 at 20:45							</time>
						</a>
											</div><!-- .comment-metadata -->

									</footer><!-- .comment-meta -->

				<div class="comment-content">
					<p>I think I was using 4.8.x. I haven’t tried with 5.0.0 beta yet, but I’ll post back here if I do.</p>
				</div><!-- .comment-content -->

				<div class="reply">
					<a class="comment-reply-link" href="http://dragly.org/2012/01/13/deploy-qt-applications-for-mac-os-x/?replytocom=3756#respond" onclick="return addComment.moveForm(&quot;div-comment-3756&quot;, &quot;3756&quot;, &quot;respond&quot;, &quot;606&quot;)">Reply</a>				</div><!-- .reply -->
			</article><!-- .comment-body -->
</li><!-- #comment-## -->
</ol><!-- .children -->
</li><!-- #comment-## -->
		<li id="comment-6322" class="comment even thread-odd thread-alt depth-1">
			<article id="div-comment-6322" class="comment-body">
				<footer class="comment-meta">
					<div class="comment-author vcard">
						<img alt="" src="./Deploy Qt applications for Mac OS X   dragly_files/0cadb41e933929608a14570e12eecf23" class="avatar avatar-74 photo grav-hashed grav-hijack" height="74" width="74" id="grav-0cadb41e933929608a14570e12eecf23-0">						<b class="fn"><a href="http://progmaatic.com/" rel="external nofollow" class="url">Habib Ullah Bahar</a></b> <span class="says">says:</span>					</div><!-- .comment-author -->

					<div class="comment-metadata">
						<a href="http://dragly.org/2012/01/13/deploy-qt-applications-for-mac-os-x/comment-page-1/#comment-6322">
							<time datetime="2013-01-20T16:23:42+00:00">
								January 20, 2013 at 16:23							</time>
						</a>
											</div><!-- .comment-metadata -->

									</footer><!-- .comment-meta -->

				<div class="comment-content">
					<p>Thanks man!</p>
<p>I was going through source rebuild and what not! When there is the awesome macdeployqt tool!</p>
<p>Now its time for distribution <img src="./Deploy Qt applications for Mac OS X   dragly_files/icon_smile.gif" alt=":)" class="wp-smiley"> </p>
				</div><!-- .comment-content -->

				<div class="reply">
					<a class="comment-reply-link" href="http://dragly.org/2012/01/13/deploy-qt-applications-for-mac-os-x/?replytocom=6322#respond" onclick="return addComment.moveForm(&quot;div-comment-6322&quot;, &quot;6322&quot;, &quot;respond&quot;, &quot;606&quot;)">Reply</a>				</div><!-- .reply -->
			</article><!-- .comment-body -->
</li><!-- #comment-## -->
		</ol><!-- .comment-list -->

		
		
	
									<div id="respond" class="comment-respond">
				<h3 id="reply-title" class="comment-reply-title">Leave a Reply <small><a rel="nofollow" id="cancel-comment-reply-link" href="http://dragly.org/2012/01/13/deploy-qt-applications-for-mac-os-x/#respond" style="display:none;">Cancel reply</a></small></h3>
									<form action="http://dragly.org/wp-comments-post.php" method="post" id="commentform" class="comment-form" novalidate="">
																			<p class="comment-notes">Your email address will not be published. Required fields are marked <span class="required">*</span></p>							<p class="comment-form-author"><label for="author">Name <span class="required">*</span></label> <input id="author" name="author" type="text" value="" size="30" aria-required="true"></p>
<p class="comment-form-email"><label for="email">Email <span class="required">*</span></label> <input id="email" name="email" type="email" value="" size="30" aria-required="true"></p>
<p class="comment-form-url"><label for="url">Website</label> <input id="url" name="url" type="url" value="" size="30"></p>
												<p class="comment-form-comment"><label for="comment">Comment</label> <textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>						<p class="form-allowed-tags">You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:  <code>&lt;a href="" title=""&gt; &lt;abbr title=""&gt; &lt;acronym title=""&gt; &lt;b&gt; &lt;blockquote cite=""&gt; &lt;cite&gt; &lt;code&gt; &lt;del datetime=""&gt; &lt;em&gt; &lt;i&gt; &lt;q cite=""&gt; &lt;strike&gt; &lt;strong&gt; </code></p>						<p class="form-submit">
							<input name="submit" type="submit" id="submit" value="Post Comment">
							<input type="hidden" name="comment_post_ID" value="606" id="comment_post_ID">
<input type="hidden" name="comment_parent" id="comment_parent" value="0">
						</p>
						<p style="display: none;"><input type="hidden" id="akismet_comment_nonce" name="akismet_comment_nonce" value="1ba0af7c47"></p><p class="comment-subscription-form"><input type="checkbox" name="subscribe_comments" id="subscribe_comments" value="subscribe" style="width: auto; -moz-appearance: checkbox; -webkit-appearance: checkbox;"> <label class="subscribe-label" id="subscribe-label" for="subscribe_comments" style="display: inline;">Notify me of follow-up comments by email.</label></p><p class="comment-subscription-form"><input type="checkbox" name="subscribe_blog" id="subscribe_blog" value="subscribe" style="width: auto; -moz-appearance: checkbox; -webkit-appearance: checkbox;"> <label class="subscribe-label" id="subscribe-blog-label" for="subscribe_blog" style="display: inline;">Notify me of new posts by email.</label></p>					</form>
							</div><!-- #respond -->
						
</div><!-- #comments -->
			
		</div><!-- #content -->
	</div><!-- #primary -->


		</div><!-- #main -->
		<footer id="colophon" class="site-footer" role="contentinfo">
				<div id="secondary" class="sidebar-container" role="complementary">
		<div class="widget-area masonry" style="position: relative; height: 1184px;">
			<aside id="search-3" class="widget widget_search masonry-brick" style="position: absolute; top: 0px; left: 0px;"><form role="search" method="get" class="search-form" action="http://dragly.org/">
				<label>
					<span class="screen-reader-text">Search for:</span>
					<input type="search" class="search-field" placeholder="Search …" value="" name="s" title="Search for:">
				</label>
				<input type="submit" class="search-submit" value="Search">
			</form></aside>		<aside id="recent-posts-3" class="widget widget_recent_entries masonry-brick" style="position: absolute; top: 0px; left: 265px;">		<h3 class="widget-title">Most recent posts</h3>		<ul>
					<li>
				<a href="http://dragly.org/2013/09/23/when-variational-monte-carlo-becomes-visual/" title="When variational Monte Carlo becomes visual">When variational Monte Carlo becomes visual</a>
						</li>
					<li>
				<a href="http://dragly.org/2013/09/13/monitoring-your-unit-tests-without-lifting-a-finger/" title="Monitoring your unit tests without lifting a finger">Monitoring your unit tests without lifting a finger</a>
						</li>
					<li>
				<a href="http://dragly.org/2013/05/13/speeding-up-compilation-on-ubuntu-with-qt-creator/" title="Speeding up compilation on Ubuntu with Qt Creator">Speeding up compilation on Ubuntu with Qt Creator</a>
						</li>
					<li>
				<a href="http://dragly.org/2013/04/24/limiting-the-width-of-wikipedia-articles-when-reading-on-widescreens/" title="Limiting the width of Wikipedia-articles when reading on widescreens">Limiting the width of Wikipedia-articles when reading on widescreens</a>
						</li>
					<li>
				<a href="http://dragly.org/2013/04/19/setting-up-unittest-with-qt-creator/" title="Setting up UnitTest++ with Qt Creator">Setting up UnitTest++ with Qt Creator</a>
						</li>
				</ul>
		</aside><aside id="categories-3" class="widget widget_categories masonry-brick" style="position: absolute; top: 0px; left: 530px;"><h3 class="widget-title">Categories</h3>		<ul>
	<li class="cat-item cat-item-7"><a href="http://dragly.org/category/3d/" title="View all posts filed under 3D">3D</a>
</li>
	<li class="cat-item cat-item-21"><a href="http://dragly.org/category/programming/c/" title="View all posts filed under C++">C++</a>
</li>
	<li class="cat-item cat-item-182"><a href="http://dragly.org/category/computational-physics/" title="View all posts filed under Computational Physics">Computational Physics</a>
</li>
	<li class="cat-item cat-item-11"><a href="http://dragly.org/category/databases/" title="View all posts filed under Databases">Databases</a>
</li>
	<li class="cat-item cat-item-100"><a href="http://dragly.org/category/efficiency/" title="View all posts filed under Efficiency">Efficiency</a>
</li>
	<li class="cat-item cat-item-221"><a href="http://dragly.org/category/featured/" title="View all posts filed under Featured">Featured</a>
</li>
	<li class="cat-item cat-item-110"><a href="http://dragly.org/category/games/" title="A category for games">Games</a>
</li>
	<li class="cat-item cat-item-68"><a href="http://dragly.org/category/graphics/gimp/" title="View all posts filed under Gimp">Gimp</a>
</li>
	<li class="cat-item cat-item-28"><a href="http://dragly.org/category/graphics/" title="View all posts filed under Graphics">Graphics</a>
</li>
	<li class="cat-item cat-item-144"><a href="http://dragly.org/category/programming/html5/" title="View all posts filed under HTML5">HTML5</a>
</li>
	<li class="cat-item cat-item-29"><a href="http://dragly.org/category/graphics/inkscape/" title="View all posts filed under Inkscape">Inkscape</a>
</li>
	<li class="cat-item cat-item-12"><a href="http://dragly.org/category/java/" title="View all posts filed under Java">Java</a>
</li>
	<li class="cat-item cat-item-143"><a href="http://dragly.org/category/programming/javascript/" title="View all posts filed under Javascript">Javascript</a>
</li>
	<li class="cat-item cat-item-47"><a href="http://dragly.org/category/latex/" title="View all posts filed under LaTeX">LaTeX</a>
</li>
	<li class="cat-item cat-item-46"><a href="http://dragly.org/category/mindseye/" title="View all posts filed under Mindseye">Mindseye</a>
</li>
	<li class="cat-item cat-item-34"><a href="http://dragly.org/category/mobile/" title="View all posts filed under Mobile">Mobile</a>
</li>
	<li class="cat-item cat-item-136"><a href="http://dragly.org/category/programming/mpi/" title="View all posts filed under MPI">MPI</a>
</li>
	<li class="cat-item cat-item-35"><a href="http://dragly.org/category/mobile/n900/" title="View all posts filed under N900">N900</a>
</li>
	<li class="cat-item cat-item-94"><a href="http://dragly.org/category/mobile/n950/" title="View all posts filed under N950">N950</a>
</li>
	<li class="cat-item cat-item-13"><a href="http://dragly.org/category/netbeans/" title="View all posts filed under NetBeans">NetBeans</a>
</li>
	<li class="cat-item cat-item-4"><a href="http://dragly.org/category/networking/" title="View all posts filed under Networking">Networking</a>
</li>
	<li class="cat-item cat-item-114"><a href="http://dragly.org/category/other/" title="A category for other">Other</a>
</li>
	<li class="cat-item cat-item-20"><a href="http://dragly.org/category/personal/" title="View all posts filed under Personal">Personal</a>
</li>
	<li class="cat-item cat-item-142"><a href="http://dragly.org/category/physics-2/" title="View all posts filed under Physics">Physics</a>
</li>
	<li class="cat-item cat-item-8"><a href="http://dragly.org/category/programming/" title="View all posts filed under Programming">Programming</a>
</li>
	<li class="cat-item cat-item-24"><a href="http://dragly.org/category/programming/python/" title="View all posts filed under Python">Python</a>
</li>
	<li class="cat-item cat-item-25"><a href="http://dragly.org/category/programming/python-programming/" title="View all posts filed under Python">Python</a>
</li>
	<li class="cat-item cat-item-30"><a href="http://dragly.org/category/programming/qt/" title="View all posts filed under Qt">Qt</a>
</li>
	<li class="cat-item cat-item-76"><a href="http://dragly.org/category/programming/ruby/" title="View all posts filed under Ruby">Ruby</a>
</li>
	<li class="cat-item cat-item-26"><a href="http://dragly.org/category/security/" title="View all posts filed under Security">Security</a>
</li>
	<li class="cat-item cat-item-243"><a href="http://dragly.org/category/programming/testing/" title="View all posts filed under Testing">Testing</a>
</li>
	<li class="cat-item cat-item-5"><a href="http://dragly.org/category/tutorials/" title="View all posts filed under Tutorials">Tutorials</a>
</li>
	<li class="cat-item cat-item-108"><a href="http://dragly.org/category/tv/" title="A category for TV">TV</a>
</li>
	<li class="cat-item cat-item-3"><a href="http://dragly.org/category/ubuntu/" title="View all posts filed under Ubuntu">Ubuntu</a>
</li>
	<li class="cat-item cat-item-1"><a href="http://dragly.org/category/uncategorized/" title="View all posts filed under Uncategorized">Uncategorized</a>
</li>
		</ul>
</aside><aside id="tag_cloud-3" class="widget widget_tag_cloud masonry-brick" style="position: absolute; top: 0px; left: 795px;"><h3 class="widget-title">Tags</h3><div class="tagcloud"><a href="http://dragly.org/tag/application/" class="tag-link-87" title="2 topics" style="font-size: 10.863636363636pt;">application</a>
<a href="http://dragly.org/tag/auto-mount/" class="tag-link-16" title="1 topic" style="font-size: 8pt;">auto mount</a>
<a href="http://dragly.org/tag/automount/" class="tag-link-17" title="1 topic" style="font-size: 8pt;">automount</a>
<a href="http://dragly.org/tag/c/" class="tag-link-21" title="3 topics" style="font-size: 12.772727272727pt;">C++</a>
<a href="http://dragly.org/tag/cplusplus/" class="tag-link-22" title="1 topic" style="font-size: 8pt;">cplusplus</a>
<a href="http://dragly.org/tag/distribution/" class="tag-link-172" title="2 topics" style="font-size: 10.863636363636pt;">distribution</a>
<a href="http://dragly.org/tag/enthought/" class="tag-link-171" title="2 topics" style="font-size: 10.863636363636pt;">enthought</a>
<a href="http://dragly.org/tag/epd/" class="tag-link-174" title="2 topics" style="font-size: 10.863636363636pt;">epd</a>
<a href="http://dragly.org/tag/error/" class="tag-link-157" title="2 topics" style="font-size: 10.863636363636pt;">error</a>
<a href="http://dragly.org/tag/errors/" class="tag-link-23" title="2 topics" style="font-size: 10.863636363636pt;">errors</a>
<a href="http://dragly.org/tag/game/" class="tag-link-88" title="2 topics" style="font-size: 10.863636363636pt;">game</a>
<a href="http://dragly.org/tag/git/" class="tag-link-31" title="1 topic" style="font-size: 8pt;">Git</a>
<a href="http://dragly.org/tag/hosting/" class="tag-link-33" title="2 topics" style="font-size: 10.863636363636pt;">hosting</a>
<a href="http://dragly.org/tag/internet/" class="tag-link-44" title="1 topic" style="font-size: 8pt;">Internet</a>
<a href="http://dragly.org/tag/java/" class="tag-link-12" title="1 topic" style="font-size: 8pt;">Java</a>
<a href="http://dragly.org/tag/latex/" class="tag-link-47" title="2 topics" style="font-size: 10.863636363636pt;">LaTeX</a>
<a href="http://dragly.org/tag/linux/" class="tag-link-57" title="3 topics" style="font-size: 12.772727272727pt;">Linux</a>
<a href="http://dragly.org/tag/mac/" class="tag-link-116" title="2 topics" style="font-size: 10.863636363636pt;">mac</a>
<a href="http://dragly.org/tag/maemo/" class="tag-link-49" title="3 topics" style="font-size: 12.772727272727pt;">maemo</a>
<a href="http://dragly.org/tag/mobile-2/" class="tag-link-36" title="1 topic" style="font-size: 8pt;">mobile</a>
<a href="http://dragly.org/tag/molecular-dynamics/" class="tag-link-200" title="2 topics" style="font-size: 10.863636363636pt;">molecular dynamics</a>
<a href="http://dragly.org/tag/monitor/" class="tag-link-64" title="2 topics" style="font-size: 10.863636363636pt;">monitor</a>
<a href="http://dragly.org/tag/mount/" class="tag-link-15" title="1 topic" style="font-size: 8pt;">mount</a>
<a href="http://dragly.org/tag/n900/" class="tag-link-35" title="2 topics" style="font-size: 10.863636363636pt;">N900</a>
<a href="http://dragly.org/tag/netbeans/" class="tag-link-13" title="1 topic" style="font-size: 8pt;">NetBeans</a>
<a href="http://dragly.org/tag/network-manager/" class="tag-link-37" title="1 topic" style="font-size: 8pt;">Network Manager</a>
<a href="http://dragly.org/tag/norwegian/" class="tag-link-99" title="2 topics" style="font-size: 10.863636363636pt;">norwegian</a>
<a href="http://dragly.org/tag/physics/" class="tag-link-55" title="2 topics" style="font-size: 10.863636363636pt;">physics</a>
<a href="http://dragly.org/tag/programming/" class="tag-link-8" title="4 topics" style="font-size: 14.363636363636pt;">Programming</a>
<a href="http://dragly.org/tag/python-2/" class="tag-link-170" title="4 topics" style="font-size: 14.363636363636pt;">python</a>
<a href="http://dragly.org/tag/qt-2/" class="tag-link-50" title="5 topics" style="font-size: 15.636363636364pt;">qt</a>
<a href="http://dragly.org/tag/rdp/" class="tag-link-41" title="1 topic" style="font-size: 8pt;">rdp</a>
<a href="http://dragly.org/tag/rdpv5/" class="tag-link-42" title="1 topic" style="font-size: 8pt;">rdpv5</a>
<a href="http://dragly.org/tag/remote-desktop-server/" class="tag-link-39" title="1 topic" style="font-size: 8pt;">remote desktop server</a>
<a href="http://dragly.org/tag/screen/" class="tag-link-65" title="2 topics" style="font-size: 10.863636363636pt;">screen</a>
<a href="http://dragly.org/tag/ssh/" class="tag-link-14" title="2 topics" style="font-size: 10.863636363636pt;">ssh</a>
<a href="http://dragly.org/tag/subversion/" class="tag-link-32" title="1 topic" style="font-size: 8pt;">subversion</a>
<a href="http://dragly.org/tag/terminal/" class="tag-link-38" title="2 topics" style="font-size: 10.863636363636pt;">terminal</a>
<a href="http://dragly.org/tag/terminal-server-client/" class="tag-link-43" title="1 topic" style="font-size: 8pt;">terminal server client</a>
<a href="http://dragly.org/tag/threading/" class="tag-link-180" title="2 topics" style="font-size: 10.863636363636pt;">threading</a>
<a href="http://dragly.org/tag/ubuntu/" class="tag-link-3" title="14 topics" style="font-size: 22pt;">Ubuntu</a>
<a href="http://dragly.org/tag/version/" class="tag-link-19" title="1 topic" style="font-size: 8pt;">version</a>
<a href="http://dragly.org/tag/version-numbering/" class="tag-link-18" title="1 topic" style="font-size: 8pt;">version numbering</a>
<a href="http://dragly.org/tag/web/" class="tag-link-230" title="2 topics" style="font-size: 10.863636363636pt;">web</a>
<a href="http://dragly.org/tag/windows/" class="tag-link-40" title="2 topics" style="font-size: 10.863636363636pt;">windows</a></div>
</aside><aside id="paypal_donations-4" class="widget widget_paypal_donations masonry-brick" style="position: absolute; top: 96px; left: 0px;"><h3 class="widget-title">Donate</h3><p>If you feel like it, please consider a small contribution to help me improve my projects. That will keep me going, or maybe even make me a billionaire :D</p>
<!-- Begin PayPal Donations by http://johansteen.se/ -->
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <div class="paypal-donations">
        <input type="hidden" name="cmd" value="_donations">
        <input type="hidden" name="business" value="QU8NRR968V4UA">
<input type="hidden" name="item_number" value="dragly.org donation"><input type="hidden" name="currency_code" value="EUR"><input type="image" src="./Deploy Qt applications for Mac OS X   dragly_files/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online."><img alt="" src="./Deploy Qt applications for Mac OS X   dragly_files/pixel.gif" width="1" height="1">    </div>
</form>
<!-- End PayPal Donations -->
</aside><aside id="meta-3" class="widget widget_meta masonry-brick" style="position: absolute; top: 370px; left: 0px;"><h3 class="widget-title">Meta</h3>			<ul>
						<li><a href="http://dragly.org/wp-login.php">Log in</a></li>
			<li><a href="http://dragly.org/feed/" title="Syndicate this site using RSS 2.0">Entries <abbr title="Really Simple Syndication">RSS</abbr></a></li>
			<li><a href="http://dragly.org/comments/feed/" title="The latest comments to all posts in RSS">Comments <abbr title="Really Simple Syndication">RSS</abbr></a></li>
			<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress.org</a></li>						</ul>
</aside><aside id="text-3" class="widget widget_text masonry-brick" style="position: absolute; top: 380px; left: 265px;"><h3 class="widget-title">Links</h3>			<div class="textwidget"><a href="http://wikimediafoundation.org/wiki/Support_Wikipedia/en"><img border="0" alt="Support Wikipedia" src="./Deploy Qt applications for Mac OS X   dragly_files/Fundraising_2009-micro-thanks-en.png"></a></div>
		</aside>		</div><!-- .widget-area -->
	</div><!-- #secondary -->

			<div class="site-info">
								<a href="http://wordpress.org/" title="Semantic Personal Publishing Platform">Proudly powered by WordPress</a>
			</div><!-- .site-info -->
		</footer><!-- #colophon -->
	</div><!-- #page -->

		<div style="display:none">
	<div class="grofile-hash-map-048e5dd180f4a5a35119807d15eb2274">
	</div>
	<div class="grofile-hash-map-f90d870c57e93d34fac6328699b82f9c">
	</div>
	<div class="grofile-hash-map-0cadb41e933929608a14570e12eecf23">
	</div>
	</div>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shCore.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushAS3.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushBash.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushColdFusion.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushClojure.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushCpp.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushCSharp.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushCss.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushDelphi.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushDiff.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushErlang.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushFSharp.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushGroovy.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushJava.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushJavaFX.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushJScript.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushLatex.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushMatlabKey.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushObjC.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushPerl.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushPhp.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushPlain.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushPowerShell.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushPython.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushR.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushRuby.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushScala.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushSql.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushVb.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/shBrushXml.js"></script>
<script type="text/javascript">
	(function(){
		var corecss = document.createElement('link');
		var themecss = document.createElement('link');
		var corecssurl = "http://dragly.org/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/styles/shCore.css?ver=3.0.83c";
		if ( corecss.setAttribute ) {
				corecss.setAttribute( "rel", "stylesheet" );
				corecss.setAttribute( "type", "text/css" );
				corecss.setAttribute( "href", corecssurl );
		} else {
				corecss.rel = "stylesheet";
				corecss.href = corecssurl;
		}
		document.getElementsByTagName("head")[0].insertBefore( corecss, document.getElementById("syntaxhighlighteranchor") );
		var themecssurl = "http://dragly.org/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/styles/shThemeDefault.css?ver=3.0.83c";
		if ( themecss.setAttribute ) {
				themecss.setAttribute( "rel", "stylesheet" );
				themecss.setAttribute( "type", "text/css" );
				themecss.setAttribute( "href", themecssurl );
		} else {
				themecss.rel = "stylesheet";
				themecss.href = themecssurl;
		}
		//document.getElementById("syntaxhighlighteranchor").appendChild(themecss);
		document.getElementsByTagName("head")[0].insertBefore( themecss, document.getElementById("syntaxhighlighteranchor") );
	})();
	SyntaxHighlighter.config.strings.expandSource = '+ expand source';
	SyntaxHighlighter.config.strings.help = '?';
	SyntaxHighlighter.config.strings.alert = 'SyntaxHighlighter\n\n';
	SyntaxHighlighter.config.strings.noBrush = 'Can\'t find brush for: ';
	SyntaxHighlighter.config.strings.brushNotHtmlScript = 'Brush wasn\'t configured for html-script option: ';
	SyntaxHighlighter.defaults['class-name'] = 'codesyntax';
	SyntaxHighlighter.defaults['pad-line-numbers'] = true;
	SyntaxHighlighter.defaults['tab-size'] = 2;
	SyntaxHighlighter.all();
</script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/devicepx-jetpack.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/gprofiles.js"></script>
<script type="text/javascript">
/* <![CDATA[ */
var WPGroHo = {"my_hash":""};
/* ]]> */
</script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/wpgroho.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/jquery.masonry.min.js"></script>
<script type="text/javascript" src="./Deploy Qt applications for Mac OS X   dragly_files/functions.js"></script>

	<script src="./Deploy Qt applications for Mac OS X   dragly_files/e-201340.js" type="text/javascript"></script>
	<script type="text/javascript">
	st_go({v:'ext',j:'1:2.5',blog:'18869845',post:'606',tz:'2'});
	var load_cmc = function(){linktracker_init(18869845,606,2);};
	if ( typeof addLoadEvent != 'undefined' ) addLoadEvent(load_cmc);
	else load_cmc();
	</script><img id="wpstats" src="./Deploy Qt applications for Mac OS X   dragly_files/g.gif" alt="">
<div id="stcpDiv" style="position: absolute; top: -1999px; left: -1988px;"><header class="entry-header"><h1 class="entry-title">Deploy Qt applications for Mac OS X</h1>
		
		<div class="entry-meta">
			<span class="date"><a href="./Deploy Qt applications for Mac OS X   dragly_files/Deploy Qt applications for Mac OS X   dragly.html" title="Permalink to Deploy Qt applications for Mac OS X" rel="bookmark"><time class="entry-date" datetime="2012-01-13T13:55:08+00:00">January 13, 2012</time></a></span><span class="categories-links"><a href="http://dragly.org/category/programming/" title="View all posts in Programming" rel="category tag">Programming</a>, <a href="http://dragly.org/category/programming/qt/" title="View all posts in Qt" rel="category tag">Qt</a></span><span class="tags-links"><a href="http://dragly.org/tag/deployment/" rel="tag">deployment</a>, <a href="http://dragly.org/tag/dmg/" rel="tag">dmg</a>, <a href="http://dragly.org/tag/mac/" rel="tag">mac</a>, <a href="http://dragly.org/tag/mac-os-x/" rel="tag">mac os x</a>, <a href="http://dragly.org/tag/os-x/" rel="tag">os x</a>, <a href="http://dragly.org/tag/qmake/" rel="tag">qmake</a>, <a href="http://dragly.org/tag/qt-2/" rel="tag">qt</a></span><span class="author vcard"><a class="url fn n" href="http://dragly.org/author/svenni/" title="View all posts by Svenn-Arne Dragly" rel="author">Svenn-Arne Dragly</a></span>					</div><!-- .entry-meta -->
	</header><!-- .entry-header -->

		<div class="entry-content">
		<p>This turned out to be really simple. I was trying to create a Mac OS X version of my game, Nanoparticles, and was having trouble with some flicker when running a QGraphicsView with OpenGL. The solution turned out to simply be to <a href="https://bugreports.qt.nokia.com/browse/QTBUG-23619">disable some style sheet settings</a> that I didn’t need.</p>
<p>After this I wanted to create a nice .dmg file for easy deployment on Mac OS X. Thankfully, this process is not hard either. I found this through the <a href="http://developer.qt.nokia.com/doc/qt-4.8/deployment-mac.html">Qt Documentation</a>, but it is actually simpler than it seems thanks to the macdeployqt tool. This is mentioned on the page, but I decided to give a more thorough walk through on how to use the tool here:</p>
<ol>
<li>Build your application</li>
<li>In the build directory, run
<div><div id="highlighter_768280" class="syntaxhighlighter codesyntax shell"><div class="toolbar"><span><a href="http://dragly.org/2012/01/13/deploy-qt-applications-for-mac-os-x/#" class="toolbar_item command_help help">?</a></span></div><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="gutter"><div class="line number1 index0 alt2">1</div></td><td class="code"><div class="container"><div class="line number1 index0 alt2"><code class="shell plain">macdeployqt yourappname.app -dmg</code></div></div></td></tr></tbody></table></div></div>
<p>macdeployqt is found in the ~/Library/QtSDK/Desktop/Qt/474/gcc/bin folder (if that is where you installed Qt)</p></li>
<li>You should now have a nice yourappname.dmg file in the build directory. Open this up and check that your application runs from there.</li>
<li>If everything is working fine, you can do some prettifying of your .dmg file by opening it up using the Disk Utility and converting it to a Read/Write disk image.</li>
<li>Open your Read/Write disk image and create a shortcut to your Applications folder. This could either be done by dragging the Applications folder while holding the command key or by creating a symbolic link in terminal:
<div><div id="highlighter_1142" class="syntaxhighlighter codesyntax shell"><div class="toolbar"><span><a href="http://dragly.org/2012/01/13/deploy-qt-applications-for-mac-os-x/#" class="toolbar_item command_help help">?</a></span></div><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="gutter"><div class="line number1 index0 alt2">1</div></td><td class="code"><div class="container"><div class="line number1 index0 alt2"><code class="shell functions">ln</code> <code class="shell plain">-s </code><code class="shell plain">/Applications</code> <code class="shell plain">.</code><code class="shell plain">/Applications</code></div></div></td></tr></tbody></table></div></div>
</li>
<li>Edit the icon size, background image, etc. by clicking Command + J to open the View Options. Also, use View -&gt; Hide Toolbar and Hide Sidebar to hide the excessive toolbars from the disk image.</li>
<li>Close the image and use Disk Utility to convert it back to a compressed disk image.</li>
<li>Distribute your .dmg file.</li>
</ol>
<p>If you need more details about the process and how deployment is performed, have a look in the <a href="http://developer.qt.nokia.com/doc/qt-4.8/deployment-mac.html">Qt Docs</a>.</p></div> - See more at: http://dragly.org/2012/01/13/deploy-qt-applications-for-mac-os-x/#sthash.7gXByzY4.dpuf</div><iframe id="stSegmentFrame" name="stSegmentFrame" src="./Deploy Qt applications for Mac OS X   dragly_files/getSegment.html" frameborder="0" scrolling="no" width="0px" height="0px" style="display:none;"></iframe><div id="stwrapper" class="stwrapper" style="visibility: hidden; top: -999px; left: -999px;"><div class="stclose"></div><iframe allowtransparency="true" id="stLframe" class="stLframe" name="stLframe" frameborder="0" scrolling="no" width="353px" height="350px" src="./Deploy Qt applications for Mac OS X   dragly_files/index.9f4442b1d8b039e3bcd66c27ee53a477.html" style="top: 0px; left: 0px;"></iframe></div><div id="stimuli_overlay" style="display: none;"></div><div id="stimuli_lightbox" style="display: none;"><div id="stimuli_outerImageContainer" style="width: 250px; height: 250px;"><div id="stimuli_imageContainer"><img id="stimuli_lightboxImage"><div id="stimuli_hoverNav"><a id="stimuli_prevLink" href="http://dragly.org/2012/01/13/deploy-qt-applications-for-mac-os-x/#"></a><a id="stimuli_nextLink" href="http://dragly.org/2012/01/13/deploy-qt-applications-for-mac-os-x/#"></a></div><div id="stimuli_loading"><a id="stimuli_loadingLink" href="http://dragly.org/2012/01/13/deploy-qt-applications-for-mac-os-x/#"></a></div></div></div><div id="stimuli_imageDataContainer"><div id="stimuli_imageData"><div id="stimuli_imageDetails"><span id="stimuli_caption"></span><span id="stimuli_numberDisplay"></span></div><div id="stimuli_bottomNav"><a id="stimuli_bottomNavClose" href="http://dragly.org/2012/01/13/deploy-qt-applications-for-mac-os-x/#"></a></div></div></div></div></body></html>